package com.ruoyi.system.service;

import java.util.List;

import com.ruoyi.system.domain.FaultCustForm;
import com.ruoyi.system.domain.WorkCustomer;
import com.ruoyi.system.domain.WorkForm;

/**
 * 工单表Service接口
 * 
 * @author ruoyi
 * @date 2020-04-20
 */
public interface IWorkFormService 
{
    /**
     * 查询工单表
     * 
     * @param id 工单表ID
     * @return 工单表
     */
    public WorkForm selectWorkFormById(Long id);

    /**
     * 查询工单表列表
     * 
     * @param workForm 工单表
     * @return 工单表集合
     */
    public List<WorkForm> selectWorkFormList(WorkForm workForm);

    /**
     * 新增工单表
     * 
     * @param workForm 工单表
     * @return 结果
     */
    public int insertWorkForm(WorkForm workForm);

    /**
     * 修改工单表
     * 
     * @param workForm 工单表
     * @return 结果
     */
    public int updateWorkForm(WorkForm workForm);

    /**
     * 批量删除工单表
     * 
     * @param ids 需要删除的数据ID
     * @return 结果
     */
    public int deleteWorkFormByIds(String ids);

    /**
     * 删除工单表信息
     * 
     * @param id 工单表ID
     * @return 结果
     */
    public int deleteWorkFormById(Long id);

    List<FaultCustForm> selectWorkFormListAll(WorkForm workForm,String name);

    int insertWorkFormByIds(Long ids);

    int updataWorkFormById(Long id);

    List<FaultCustForm> selectWorkCheckList(WorkForm workFormm,String name);

    int updateWorkFormBycheckOk(Long id,Long checkId);

    List<FaultCustForm> selectWorkCheckListOk(WorkForm workForm,String name);

    int updateWorkFormBycheckId(Long id);

    List<FaultCustForm> selectWorkFinishCheckListOk(WorkForm workForm,String loginName);

    List<FaultCustForm> selectWorkFinishFormListOk(WorkForm workForm,String name);

    List<FaultCustForm> selectWorkFinishFormStatus(WorkForm workForm,String name);

    int updateWorkFormByTransId(int id, int uId);

    int updateWorkFormByReturnId(Long id);

    List<FaultCustForm> selectWorkTransToCheck(WorkForm workForm,String name);

    int updateWorkFormBycheckff(Long id, Long returnId);

    Long insertWorkFormByForm(WorkForm workForm);

    void updateWorkFormByWork(Long username,String complete);

    int selectWorkCheckListByFormId(Long f);

    int deleteWorkFormByFormId(Long id);
}
